cmake_minimum_required(VERSION 3.17)
project(c_network C)

set(CMAKE_C_STANDARD 11)
#windows上的socket编程需要链接库ws2_32 wsock32
link_libraries(ws2_32 wsock32)

add_executable(c_network
        hello_client.c
        hello_serve.c
        hello_serve_win.c
        hello_client_win.c
        pthread_join_demo.c
        big_little_CPU.c
        udp_hello_server.c
        udp_hello_client.c
        udp_hello_server_win.c
        udp_hello_client_win.c
        file_serve.c
        file_client.c
        file_serve_win.c
        file_client_win.c
        gethostbyname.c
        gethostbyaddr.c
        set_buf.c
        wait.c
        waitpid.c
        signal.c
        sigaction.c
        kill_zombie.c
        mproce_serve.c
        mproce_client.c
        pipe.c
        fork.c
        select.c
        select_serve.c
        select_client.c
        select_serve_win.c
        select_client_win.c
        oob_send_win.c
        oob_recv_win.c oob_send.c oob_recv.c multicast_send.c multicast_recevier.c broadcast_send.c broadcast_recevier.c multicast_send_win.c multicast_recevier_win.c syscpy.c stdcpy.c syscpy_to_stdcpy.c stdcpy_to_syscpy.c fd_FILE_serve.c fd_FILE_client.c epoll_serve.c epoll_client.c epoll_serve_epet.c epoll_client_epet.c pthread_mutual_exclusion.c semaphore.c)
